package com.aitesting.common;

import lombok.Getter;

@Getter
public enum CommonCode implements IErrorCode {

    SUCCESS(200, "success"),
    FAILURE(400,"参数异常"),
    FORBIDDEN(403,"没有操作权限");

    private final long code;
    private final String message;

    //构造函数
    private CommonCode(long code, String message) {
        this.code = code;
        this.message = message;
    }
}
